/*
 * VectorTrigramas.h
 *
 *  Created on: Dec 8, 2014
 *      Author: ale
 */
#include <fstream>
#include <stdlib.h>
#include <stdio.h>
#include <iostream>
#include <string>
#include <string.h>
#include <vector>
#include <cmath>
#include "VectorBigramas.h"

#ifndef PRED_VECTORTRIGRAMAS_H_
#define PRED_VECTORTRIGRAMAS_H_

class VectorTrigramas {
public:
	VectorTrigramas(VectorBigramas*);
	virtual ~VectorTrigramas();

	VectorBigramas *bigramas;

	size_t tam;

	vector<unsigned int> t_palabras;//vector<string> t_palabras;
	vector<unsigned int> hist;
	vector<float> probs;

	unsigned int buscarTrigrama(string A, string B, string C,size_t,size_t,size_t,size_t);
	unsigned int agregarTrigrama(string A, string B, string C, double prob);
	double obtenerProbabilidad(string A, string B, string C);

	unsigned int obtenerHash(const char* unigrama, size_t len);

	void imprimirTrigramas();
};

#endif /* PRED_VECTORTRIGRAMAS_H_ */
